home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000093_news@newsmaster….columbia.edu _Tue Jul 22 21:51:11 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id VAA09051
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 22 Jul 1997 21:51:11 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id VAA05101
for kermit.misc@watsun; Tue, 22 Jul 1997 21:51:10 -0400 (EDT)
Path: news.columbia.edu!psinntp!howland.erols.net!feeder.chicago.cic.net!ftpbox.mot.com!mothost.mot.com!news-in.cig.mot.com!news.ecid.cig.mot.com!merlin!cornellr
From: cornellr@merlin.ecid.cig.mot.com (Robert Cornell)
Newsgroups: comp.protocols.kermit.misc
Subject: \fFiles()
Date: 22 Jul 1997 18:10:00 GMT
Organization: Motorola Ltd., European Cellular Infrastructure Division
Lines: 28
Distribution: world
Message-ID: <1997Jul22.190800@merlin.ecid.cig.mot.com>
NNTP-Posting-Host: buzzard.ecid.cig.mot.com
Keywords: \fFiles()
Xref: news.columbia.edu comp.protocols.kermit.misc:7371
I have been pulling my hair out trying to evaluate whether a file is a
file or a directory.
I think I've now got it down...
[/home/cornellr] C-Kermit>mkdir dummy
[/home/cornellr] C-Kermit>echo \fFiles(dummy/*)
0
[/home/cornellr] C-Kermit>echo \fFiles(dummy/.*)
2
Can I safely assume this is a feature and that the fact that * dosen't match
. and .. is because:
[/home/cornellr] C-Kermit>echo \fFiles(*)
27
[/home/cornellr] C-Kermit>echo \fFiles(.*)
40
i.e. you don't want to see hidden(?) files.
Further, how can I tell if its a directory/character special/link if I haven't
got read permissions on it (without using shell).
Robert Cornell
-------------------------------------------------
� Robert Cornell - cornellr@ecid.cig.mot.com
Mountfield +44 1424 432627 Fax +44 1424 441144
Motorola ECID +44 1793 566344 Fax +44 1793 420915